package com.gxa.zhonglong.service;

import com.gxa.zhonglong.exception.BusinessException;
import com.gxa.zhonglong.pojo.PointsRule;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : 宸濯
 * Date: 2021/10/30 15:27
 * Description:
 * Version: V1.0
 */
public interface PointsRuleService {
    /**
     * 分页查询
     * @param page 当前页码
     * @param size 每页条数
     * @return 每页数据
     */
    List<PointsRule> selectByPage(Integer page, Integer size);

    Integer selectCount();

    /**
     * 根据条件查询
     * @param pointsRule 条件对象
     * @return 查询结果
     */
    List<Map<String,Object>> search(PointsRule pointsRule);
    void add(PointsRule pointsRule) throws BusinessException;
    void update(PointsRule pointsRule) throws BusinessException;
    void del(Long id) throws BusinessException;
}
